      <!-- Left side column. contains the logo and sidebar -->
      <aside class="main-sidebar ">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
          <!-- Sidebar user panel -->
          <div class="user-panel">
            <div class="pull-left image">
              <img src="{$avatar}" class="img-circle" alt="User Image" />
            </div>
            <div class="pull-left info ">
              <p><?php echo getUserName(); ?></p>

              <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
            </div>
          </div>
          <!-- sidebar menu: : style can be found in sidebar.less -->
          <ul class="sidebar-menu">
            <li class="header">MAIN NAVIGATION</li>
              <volist name="groups" id="group" key="i">
                  <li class="treeview <?php //if ($group['id'] == $currunt_group ): ?>  active <?php //endif; ?>">
                      <a href="#">
                          <i class="<?php echo $group['icon']==''? 'fa fa-th':$group['icon']; ?>"></i> <span><?php echo L($group['title']); ?></span>
                          <i class="fa fa-angle-left pull-right"></i>
                      </a>
                      <ul class="treeview-menu">
                          <volist id="item" name="menu[$group['id']]" >
                              <eq name="item['access']" value="1">
                                  <eq name="item.level" value="3">
                                      <li class=" <?php if ($item['name'] == $currunt_note) : ?> active <?php endif;?>">
									  <!-- $parents[$item['pid']]['name'].'/'. -->
                                          <a href="<?php echo U('/'.$item['name']); ?>" ><i class="fa fa-circle-o"></i><?php echo  L($item['title']) ?></a>
                                      </li>
                                      <else/>
                                      <li class=" <?php if ($item['name'] == $currunt_note) : ?> active <?php endif;?>">
                                        <?php $color_arr = array('red','yellow','aqua','square','green','orange'); ?>
                                          <a href="<?php echo U('/'.$item['name']); ?>" ><i class="fa fa-circle-o text-<?php echo $color_arr[rand(0,5)]  ?>"></i><?php echo  L($item['title']) ?></a>
                                      </li>
                                  </eq>
                              </eq>
                          </volist>
                      </ul>
                  </li>
              </volist>
          </ul>
        </section>
        <!-- /.sidebar -->
      </aside>